
<body>

    <div class="warp">
        <div class="my-header">
            <?php if(isset($mobile)): ?>
            <img src="/static/dist/images/my_2.jpg" alt="">
            <?php else: ?>
            <img src="/static/dist/images/my.jpg" alt="">
            <?php endif; ?>

            <a href="<?php echo $base_url; ?>home" class="return-btn2">
                <i class="iconfont icon-left1"></i>
            </a>

            <?php if(isset($mobile)): ?>
            <p class="dh_p">
                <?php echo $mobile; ?>
            </p>
            <?php else: ?>
            <a href="<?php echo $base_url; ?>home/account/login?back_url=<?php echo urlencode($base_url); ?>home/account/myInfo" class="login-btn">
                点此登录                
            </a>
            <?php endif; ?>
            <?php if(isset($uid)) : ?>
			<a  class="out-btn" href="<?php echo $base_url; ?>home/account/logout">
				退出商城
			</a>
        <?php endif;?>
        </div>
        <div class="my-bar">
            <ul>
                <li>
                    <a href="<?php echo $base_url?>home/order/userorders">
                    <i class="icon iconfont icon-dingdan"></i>我的订单 <i class="r iconfont icon-left"></i>
                    </a>
                </li>
                 <li>
                    <a href="<?php echo $base_url?>home/address">
                    <i class="icon iconfont icon-shouhuodizhi"></i>收货地址 <i class="r iconfont icon-left"></i>
                    </a>
                </li>
                 <li>
                    <a href="<?php echo $base_url;?><?php if(!empty($cardid)){echo 'home/card/cardlist';}else{echo 'home/card/addcard';}?>">
                    <i class="icon iconfont icon-bangdingyinhangqia- <?php if(empty($cardid)) echo 'active'; ?>"></i>绑定银行卡 <div class="r"><span class="txt">返钱账户</span><i class=" iconfont icon-left"></div></i>
                    </a>
                </li>
                 <li>
                    <a href="<?php echo $base_url?>home/aftersale">
                    <i class="icon iconfont icon-weibiaoti111"></i>售后 <i class="r iconfont icon-left"></i>
                    </a>
                </li>
            </ul>
        </div>
        <div class="follow-bar">
            <a href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzAwMTU0NjM1MQ==&scene=110#wechat_redirect" class="follow-btn">
               <i class="iconfont icon-xiaolvdashiicon02-copy-copy"></i> 点击关注微信公众号
            </a>
        </div>


    </div>

    <script src="/static/dist/js/base.js"></script>

    <script>
        // 矫正rem
        function correctrem() {
            var rem_full_width = $("<div id='rem-test' style='width:7.5rem'></div>").appendTo($('body')).width();
            var device_width = Math.min(document.documentElement.clientWidth, 640);
            if (rem_full_width !== device_width) {
                document.documentElement.style.fontSize = (device_width / 7.5) * (device_width / rem_full_width) + 'px';
            }
            $('#rem-test').remove();
        }
        correctrem();    
    </script>

</body>

</html>
